﻿using Angle.Krill.SystemConfig;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Angle.Krill.Utils
{
    public static class MessageHelper
    {
        public static void Success(this Form form, string message)
        {
            AntdUI.Message.success(form, message, SysConfigHelper.Instance.SysConfig.MessageFont);
        }
        public static void Warn(this Form form, string message)
        {
            AntdUI.Message.warn(form, message, SysConfigHelper.Instance.SysConfig.MessageFont);
        }
        public static void Info(this Form form, string message)
        {
            AntdUI.Message.info(form, message, SysConfigHelper.Instance.SysConfig.MessageFont);
        }
        public static void Error(this Form form, string message)
        {
            AntdUI.Message.error(form, message, SysConfigHelper.Instance.SysConfig.MessageFont);
        }
    }
}
